package com.czy.owner.db;

/**
 * Created by King on 2016/7/22 0022.
 */

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

@Table(name = "search")
public class SearchTable {
    @Column(name = "id", isId = true)
    private int id;
    @Column(name = "keyword")
    private String keyWord;
    @Column(name = "searchtype")
    private int searchType; // 1 汽车品牌搜索 2 群组和联系人搜索 3 热门商城商品搜索
    public static final int SEARCH_TYPE_BRAND = 1;
    public static final int SEARCH_TYPE_MESSAGE = 2;
    public static final int SEARCH_TYPE_PLATFORM_GOODS = 3;
    public static final int SEARCH_TYPE_STORE_GOODS = 4;
    @Column(name = "searchtime")
    private long searchTime;
    @Column(name ="useraccount")
    private String userAccount;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public int getSearchType() {
        return searchType;
    }

    public void setSearchType(int searchType) {
        this.searchType = searchType;
    }

    public static int getSearchTypeBrand() {
        return SEARCH_TYPE_BRAND;
    }

    public long getSearchTime() {
        return searchTime;
    }

    public void setSearchTime(long searchTime) {
        this.searchTime = searchTime;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    @Override
    public String toString() {
        return "SearchTable{" +
                "id=" + id +
                ", keyWord='" + keyWord + '\'' +
                ", searchType=" + searchType +
                ", searchTime=" + searchTime +
                ", userAccount='" + userAccount + '\'' +
                '}';
    }
}
